<!--[* $Id: postcalevents_view.html 719 2010-07-12 10:58:03Z craigh $ *]-->
<!--[ pc_queued_events_notify ]-->
<!--[ pc_pagejs_init ]-->
<div class="postcalendar_block_view_upcoming">
<!--[ counter start=0 assign=eventcount ]-->
<!--[ pc_sort_events var="S_EVENTS" sort="time" order="asc" value=$A_EVENTS ]-->
<!--[ foreach name=dates item=events key=date from=$S_EVENTS ]-->
    <!--[ foreach name=eventloop key=id item=event from=$events ]-->
        <!--[ if $eventcount < $DISPLAY_LIMIT ]-->
            <!--[ if $event.alldayevent != true ]-->
                <!--[ assign var="timestamp" value=$event.startTime ]-->
            <!--[ else ]-->
                <!--[ assign var="timestamp" value="" ]-->
            <!--[ /if ]-->
            <ul class="pc_blocklist">
                <!--[ if $smarty.foreach.eventloop.iteration eq 1 ]-->
                    <li class="pc_blockdate">
                        <!--[ $date|pc_date_format ]-->
                    </li>
                <!--[ /if ]-->
                <li class="pc_blockevent">
                    <!--[ pc_popup bgcolor=$event.catcolor caption=$event.title text=$event.hometext|pnvarprepfordisplay assign="javascript"]-->
                    <!--[gt text='private event' assign='p_txt' domain='module_postcalendar']-->
                    <!--[if $event.privateicon]--><!--[pnimg src='locked.png' modname='core' set='icons/extrasmall' title=$p_txt alt=$p_txt]--><!--[/if]-->
                    <!--[ pc_url full=true class="eventlink" action="detail" eid=$event.eid date=$date javascript=$javascript display="$timestamp `$event.title`"|strip_tags ]-->
                    <!--[ if $event.alldayevent != true ]-->&nbsp;(<!--[gt text='until' domain="module_postcalendar"]--> <!--[ $event.endTime ]-->)<!--[ /if ]-->
                    <!--[ if $event.commentcount gt 0]-->
                        <!--[gt text='%s comment left' plural='%s comments left.' count=$event.commentcount tag1=$event.commentcount domain="module_postcalendar" assign="title"]-->
                        <a href="<!--[pnmodurl modname='PostCalendar' func='view' viewtype='details' eid=$event.eid ]-->#comments" title='<!--[$title]-->'>
                        <!--[gt text='Comment' assign='alt' domain='module_postcalendar']-->
                        <!--[pnimg modname=core src=comment.gif set=icons/extrasmall alt=$alt title=$title]--></a>
                    <!--[/if]-->
                </li>
            </ul>
        <!--[ /if ]-->
    <!--[ counter ]-->
    <!--[ /foreach ]-->
<!--[ /foreach ]-->

<!--[ if $eventcount == 0 ]-->
    <!--[gt text='No upcoming events.' domain="module_postcalendar"]-->
<!--[ /if ]-->
</div>